import request from '@/utils/request'
import { faceApiUrl,technicalApiUrl} from '../config'
import { downloadGetDoc} from '@/utils/request2'
/*
  技术月报

*/

/**
 * 下个月工作计划列表
 * @param data
 */
 export function getTechnologyMonthlyList(data){
    return request({
      url: `${faceApiUrl}/technicalMonthProEngineeringComments/getTechnologyMonthly`,
      method: 'post',
      data
    })
  } 

 
/**
 * 下个月工作计划导出
 * @param data
 */
 export function getTechnologyMonthlyPrint(data){
   let month = data.month.slice(0,-2),
   fileName = `技术月报${month}统计`;
   return  downloadGetDoc(`${technicalApiUrl}/technical-month-report/print?month=${data.month}`,fileName,{})
} 

  /**
 * 
专业工程施工方案讲评情况 - 当月专业工程讲评情况
 * @param data
 */
 export function getMonthProject(data){
  return request({
    url: `${faceApiUrl}/technicalMonthProEngineeringComments/queryByMonth`,
    method: 'post',
    data
  })
} 

/**
 * 
专业工程施工方案讲评情况 - 下月专业工程讲评计划
 * @param data
 */
 export function getNextMonthProject(data){
    return request({
      url: `${faceApiUrl}/technicalMonthNextProEngineeringEvaluationPlan/queryNextByMonth`,
      method: 'post',
      data
    })
  } 

  /**
 * 
双优化工作管理 - 统计双优化未实施计划表
 * @param data
 */
 export function getOptimizeUnfinished(data){
  return request({
    url: `${faceApiUrl}/technicalDoubleNotImplementListener/queryTechnicalDoubleNotImplementListenerList`,
    method: 'post',
    data
  })
} 

  /**
 * 
标准规范管理（年初累计）
 * @param data
 */
export function getSpecification(data){
  return request({
    url: `${faceApiUrl}/technicalProjectStandardDetailedListListener/queryTechnicalProjectStandardDetailedListListenerList`,
    method: 'post',
    data
  })
} 

  /**
 * 
统计下月工作安排计划表
 * @param data
 */
export function getWorkArrangement (data){
  return request({
    url: `${faceApiUrl}/workScheduleListener/queryWorkScheduleListenerList`,
    method: 'post',
    data
  })
} 

  /**
 * 
方案修改和实施情况统计表
 * @param data
 */
export function queryProgramAppListenerListData(data){
  return request({
    url: `${faceApiUrl}/programAppListener/queryProgramAppListenerList`,
    method: 'post',
    data
  })
} 



  /**
 * 
双优化相关统计API
 * @param data
 */
export function getCountDetail(data){
  return request({
    url: `${technicalApiUrl}/technical-month-report/getCountDetail?month=${data.month}`,
    method: 'get',
  })
} 

  /**
 * 
方案审批情况-当月施工方案电子审批数量对比
 * @param data
 */
export function getProgramTotal(data){
  return request({
    url: `${technicalApiUrl}/technical-month-report/program_total?month=${data.month}`,
    method: 'get',
  })
} 


  /**
 * 
方案审批情况-当月施组、AB类施工方案报审通报信息
 * @param data
 */
export function getTechnicalCurrentMonthAbReport(data){
  return request({
    url: `${faceApiUrl}/technicalCurrentMonthAbReport/queryByMonth`,
    method: 'post',
    data
  })
} 

  /**
 * 
方案审批情况-当月施工方案回退通报（包括施组、ABCD方案）信息
 * @param data
 */
export function getTechnicalCurrentMonthRollbackReport(data){
  return request({
    url: `${faceApiUrl}/technicalCurrentMonthRollbackReport/queryByMonth`,
    method: 'post',
    data
  })
} 

  /**新月报开始*/



/**
 * 分页查询
 * @param data
 */
 export function getPageMonthTechnical(data){
    return request({
      url: `${faceApiUrl}/monthTechnical/getPageMonthTechnical`,
      method: 'post',
      data
    })
  } 

  
 /*** 
获取方案审批情况
 * @param data
 */
export function queryMonthTechnicalProgramList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalProgramList`,
    method: 'post',
    data
  })
} 

 /*** 
获取交底管理
 * @param data
 */
export function queryMonthTechnicalConfessMeetList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalConfessMeetList`,
    method: 'post',
    data
  })
} 

 /*** 
获取双优化工作管理
 * @param data
 */
export function queryMonthTechnicalDoubleList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalDoubleList`,
    method: 'post',
    data
  })
} 

 /*** 
取方案修改和实施情况
 * @param data
 */
export function queryMonthTechnicalProgrameditList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalProgrameditList`,
    method: 'post',
    data
  })
} 

 /*** 
获取施组方案联审
 * @param data
 */
export function queryMonthTechnicalProgramjointReviewList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalProgramjointReviewList`,
    method: 'post',
    data
  })
} 

 /*** 
取施工测量管理
 * @param data
 */
export function queryMonthTechnicalSurveyMonitorList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalSurveyMonitorList`,
    method: 'post',
    data
  })
} 

 /*** 
标准规范管理
 * @param data
 */
export function queryMonthTechnicalCanonicalManageList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalCanonicalManageList`,
    method: 'post',
    data
  })
} 


 /*** 
获取下月工作安排
 * @param data
 */
export function queryMonthTechnicalNextWorkList(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/queryMonthTechnicalNextWorkList`,
    method: 'post',
    data
  })
} 


 /*** 
导出
 * @param data
 */
export function monthTechnicalExportWord(data){
  return request({
    url: `${faceApiUrl}/monthTechnical/exportWord/${data.monthTechnicalId}`,
    method: 'get',
    data,
    responseType: 'arraybuffer',
  })
} 

  /**新月报结束*/



